<h1><?php echo $title_for_layout = __d('lil_ads', 'Locations List', true); ?></h1>
<?php $this->set(compact('title_for_layout')); ?>

<div class="index">
	<table cellpadding="0" cellspacing="0">
	<thead>
	<tr>
		<th><?php echo $this->Paginator->sort(__d('lil_ads', 'Title', true), 'title');?></th>
		<th align="center"><?php echo $this->Paginator->sort(__d('lil_ads', 'Accept images', true), 'accept_image');?></th>
		<th align="center"><?php echo $this->Paginator->sort(__d('lil_ads', 'Accept flash', true), 'accept_flash');?></th>
		<th align="center"><?php echo $this->Paginator->sort(__d('lil_ads', 'Accept HTML', true), 'accept_html');?></th>
		<th align="center"><?php echo $this->Paginator->sort(__d('lil_ads', 'Accept plain', true), 'accept_plain');?></th>
		<th align="center"><?php echo $this->Paginator->sort(__d('lil_ads', 'Width', true), 'width');?></th>
		<th align="center"><?php echo $this->Paginator->sort(__d('lil_ads', 'Height', true), 'height');?></th>
		<th class="actions">&nbsp;</th>
		<th class="actions">&nbsp;</th>
	</tr>
	</thead>
	<?php
		$i = 0;
		foreach ($locations as $location) {
	?>
		<tr<?php if (($i++%2)==0) echo ' class="altrow"'; ?>>
			<td><?php echo h($location['AdsLocation']['title']); ?></td>
			<td><?php echo $location['AdsLocation']['accept_image']; ?></td>
			<td><?php echo $location['AdsLocation']['accept_flash']; ?></td>
			<td><?php echo $location['AdsLocation']['accept_html']; ?></td>
			<td><?php echo $location['AdsLocation']['accept_plain']; ?></td>
			<td><?php echo $location['AdsLocation']['width']; ?></td>
			<td><?php echo $location['AdsLocation']['height']; ?></td>
			<td class="actions"><?php echo $html->link(__d('lil_ads', 'Edit', true), array('admin' => true, 'action'=>'edit', $location['AdsLocation']['id'])); ?></td>
			<td class="actions"><?php echo $html->link(__d('lil_ads', 'Delete', true), array('admin' => true, 'action'=>'delete', $location['AdsLocation']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $location['AdsLocation']['id'])); ?></td>
		</tr>
	<?php
		}
	?>
	<tfoot>
		<tr>
			<td colspan="9"><?php echo $this->Lil->paginator(); ?></td>
		</tr>
	</tfoot>
	</table>
</div>